package comenum

type UrlStyle int

const (
	Action UrlStyle = 1
	Page   UrlStyle = 2
)

func New(code int) UrlStyle {
	return UrlStyle(code)

}

var ListStatusMap = map[UrlStyle]string{
	Action: "动作",
	Page:   "页面",
}

func (p UrlStyle) StringStatus() string {
	if v, ok := ListStatusMap[p]; ok {
		return v
	}
	return "空"
}
